package com.lemon.cloud.command;

import com.lemon.cloud.interceptor.CommandInterceptor;
import com.lemon.cloud.interceptor.annotation.PostCommandInterceptor;
import com.lemon.cloud.interceptor.annotation.PreCommandInterceptor;

/**
 * @author lemon
 * @version 1.0
 * @description: TODO
 * @date Create by lemon on 2019-09-15 11:53
 */
@PreCommandInterceptor
@PostCommandInterceptor
public class CustomCommandInterceptor implements CommandInterceptor {
    void preCommand(CustomCommand command) {
        System.out.println("preCommand");
    }

    void postCommand(CustomCommand command, CustomResponse response) {
        System.out.println("postCommand");
    }
}
